import request from '@/axios'
import { SysTransferCenterFileRelDetailVo, SysTransferCenterFileRelEditQo, SysTransferCenterFileRelListVo, SysTransferCenterFileRelSearchQo } from './types'
import { BaseDeleteQo } from '@/base/api/BaseQo'
import { KeyLabelValueVo } from '@/base/api/KeyLabelValueVo'

export const sysTransferCenterFileRelPageApi = (data: SysTransferCenterFileRelSearchQo): Promise<IResponse<Array<SysTransferCenterFileRelListVo>>> => {
  return request.post({ url: '/sysTransferCenterFileRel/page.adw', data })
}

export const sysTransferCenterFileRelDetailApi = (id: number): Promise<IResponse<SysTransferCenterFileRelDetailVo>> => {
  const data = { id }
  return request.post({
    url: '/sysTransferCenterFileRel/detail.adw',
    data
  })
}

export const sysTransferCenterFileRelAddApi = (data: SysTransferCenterFileRelEditQo): Promise<IResponse<number>> => {
  return request.post({ url: '/sysTransferCenterFileRel/add.adw', data })
}

export const sysTransferCenterFileRelUpdateApi = (data: SysTransferCenterFileRelEditQo): Promise<IResponse<void>> => {
  return request.post({ url: '/sysTransferCenterFileRel/update.adw', data })
}

export const sysTransferCenterFileRelDeleteApi = (data: BaseDeleteQo): Promise<IResponse<void>> => {
  return request.post({ url: '/sysTransferCenterFileRel/delete.adw', data })
}

// [[ OnflowGenerator Range (- selectFunctions -) Start ]]

// [[ OnflowGenerator Range (- selectFunctions -) End ]]
